package com.woniu.cms.goods.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 回缴单详情页所显示的材料信息
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-19
 */
@Getter
@Setter
  @TableName("cms_goods_payback_material")
@ApiModel(value = "GoodsPaybackMaterial对象", description = "回缴单详情页所显示的材料信息")
public class GoodsPaybackMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("物资编号")
      private String goodsCode;

      @ApiModelProperty("物资名称")
      private String goodsName;

      @ApiModelProperty("规格型号")
      private String modelName;

      @ApiModelProperty("单位")
      private String paybackUnit;

      @ApiModelProperty("单价")
      private BigDecimal paybackPrice;

      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @ApiModelProperty("购入时间")
      private Date buyTime;

      @ApiModelProperty("领料凭证编号")
      private String outCode;

      @ApiModelProperty("备注")
      private String remarks;

      @ApiModelProperty("回缴单外键")
      private Integer paybackId;

      @ApiModelProperty("物资类型（0-甲供，1-乙供）")
      private Integer materialType;

      @ApiModelProperty("回缴数量")
      private BigDecimal paybackNum;

      @ApiModelProperty("回缴金额")
      private BigDecimal paybackMoney;

      @ApiModelProperty("入库单材料id（外键）")
      private Integer getbillMaterialId;


}
